package com.ihisun.tmhcms.controller.citycontroller;

import com.ihisun.tmhcms.core.service.cityservice.CityService;
import com.ihisun.tmhcms.core.vo.AreaVo;
import com.ihisun.tmhcms.utils.ResponseVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "城市相关Api")
@RestController
@RequestMapping("/city")
public class CityController {
    @Resource
    CityService cityService;

    @GetMapping("/findCityAll")
    @ApiOperation(value = "查询全部城市",response = AreaVo.class)
    public ResponseVo findCityAll(){
        return cityService.findByCityAll();
    }
}
